package cn.tedu.boot61.mapper;

import cn.tedu.boot61.entity.Image;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImageMapper {
    @Insert("insert into image values(null,#{intro},#{url})")
    void insert(Image image);
    @Select("select * from image")
    List<Image> select();
}
